package com.xbongbong.paas.pojo;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.pro.domain.entity.ChartEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 分类dto
 * @author zcp
 * @version 1.0
 * @since V1.0
 */
@Getter
@Setter
@ToString
public class ChartCategoryDTO extends BaseDTO {
    private static final long serialVersionUID = -4784635941619359165L;
    /**
     * 图表
     */
    @NotNull(message = "{dto.msg.ChartDTO.chartEntity.NotNull}")
    @Valid
    private ChartEntity chartEntity;

    /**
     * 分类类型
     */
    private List<Integer> typeIn;

    public ChartCategoryDTO() {
    }

    public ChartCategoryDTO(@NotNull(message = "{dto.msg.ChartDTO.chartEntity.NotNull}") @Valid ChartEntity chartEntity) {
        this.chartEntity = chartEntity;
    }
}
